import request from '@/utils/request'

// 获取登录信息
export function loginAPI(data) {
  return request({
    url: 'index/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export function userInfo(token) {
  return request({
    url: 'index/userinfo',
    method: 'post',
    params: { token }
  })
}

